package com.account.book.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("账本响应实体")
public class BookResVo {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("账本id")
    private String id;

    @ApiModelProperty("账本名称")
    private String bookName;

    @ApiModelProperty("账本图片")
    private String bookAvatar;

    @ApiModelProperty("成员加入账本是否需要审核（0-不需要 1-需要管理员审核）")
    private Integer userAudit;

    @ApiModelProperty("是否允许对外搜索私密账本（0-私密不允许，1-公开允许）")
    private Integer showSearch;

    @ApiModelProperty("预算-元")
    private BigDecimal budget;

    @ApiModelProperty("状态 0-删除，1-正常，2-禁用")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("否是默认账本(0-否，1是）")
    private Integer defaultBook;

    @ApiModelProperty("响应码")
    private Integer code;

    @ApiModelProperty("响应信息")
    private String desc;

    @ApiModelProperty("账本下用户相关信息")
    private BookUserResVo bookUserResVo;
}
